import request from '../../utils/request.js';
/**
 * 登录
 * @param params
 * @returns
 * */
export function onlogin(params: any) {
    return request({
        url: '/api/login',
        method: 'post',
        data: params,
    });
}
/**
 * 注册
 * */
export function onRegisterLogin(params: any) {
    return request({
        url: '/api/register',
        method: 'post',
        data: params,
    });
}


/**
 * 厂商登录
 * */
export function login(params:any)  {
    return request({
        url: '/hgInspection/ContractAPI/api/program/login',
        method: 'post',
        data: params
    })
}
